package com.detector.common;

	import java.io.IOException;
	import java.util.Properties;
	import org.springframework.core.io.ClassPathResource;
	/**
	 * 加载配置文件
	 * 
	 *
	 */
	public class PropertiesUtilNew {
		
		private static Properties properties;

		static {
			ClassPathResource resource = new ClassPathResource("httpConnect.properties");
			properties = new Properties();
			try {
				properties.load(resource.getInputStream());
			} catch (IOException e) {
				
				e.printStackTrace();
			}
		}

		public static String getValue(String key) {
			if (properties.containsKey(key)) {
				return properties.getProperty(key);
			}
			return "";
		}
	}

	
	

